/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.srcptit.trainning.giangnd.btvn2;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 *
 * @author GIANG
 */
public class B3 {
    public static void main(String[] args) throws IOException {
        String n;
        n = "";
        BufferedReader br=new BufferedReader(new FileReader("Data/B3.txt"));
        BufferedWriter bf;
        bf = new BufferedWriter(new FileWriter("Data/B3OUT.txt"));
        boolean t=true;
        n = br.readLine();
        int l=n.length();
            System.out.println(n);
        for(int i=0;i<l/2;i++)
            if(n.charAt(i)!=n.charAt(l-1-i))   
            {
                t= false;
                break;
            }
            if(t){
                System.out.println("Yes");
                bf.write("Yes");
                }
            else {
                System.out.println("NO");
                bf.write("NO");
            }
            bf.close();
          }
}